package com.ldf.jrtsp.conf;

/**
 * rtsp配置
 *
 * @author lidaofu
 * @since 2024/6/20
 **/
public class RtspConfig {
    private int rtpPortStart=30000;
    private int rtpPortEnd =32000;

    public RtspConfig() {
    }

    public RtspConfig(int rtpPortStart, int rtpPortEnd) {
        if (rtpPortStart > rtpPortEnd){
            throw new IllegalArgumentException("portStart must be less than portEnd");
        }
        this.rtpPortStart = rtpPortStart;
        this.rtpPortEnd = rtpPortEnd;
    }


    public int getRtpPortStart() {
        return rtpPortStart;
    }

    public int getRtpPortEnd() {
        return rtpPortEnd;
    }
}
